Al-Shabaab planted an IED on the road.
They shot at the officers when they did not run over the bomb. Officers overpowered them and they fled.
Security officers have intensified the crackdown on the militants.
More than 10 administration police officers escaped death after the vehicle they were travelling in narrowly missed running over a bomb on Tuesday evening.
Security agents suspect Al-Shabaab planted the Improvised Explosive Device (IED) at Mambore-Mkokoni Junction near the Kiunga KenGen Power Station in Lamu East, targeting the officers on patrol.
Early Wednesday morning, Lamu County Commissioner Gilbert Kitiyo said an unknown number of heavily armed militants were hiding in the bushes and shot at the Land Cruiser when it evaded the IED.
A fierce 10-minute fire exchange ensued.
“Our officers responded immediately and managed to overpower the militants. They fled into the bushes. Luckily, all our officers escaped unhurt. It’s only the Land Cruiser’s windscreen that was broken. It was towards darkness when the incident happened so we are still waiting for more details from the ground,” said Mr Kitiyo.