En passant
If an enemy pawn moves two squares and passes the square your pawn attacks, you may capture it as though it had moved only one square. That is en passant. The capturing pawn finishes on the skipped square, and the enemy pawn is removed.
It is legal only on the next move. Play anything else and the chance is gone. It only exists when your pawn is on its fifth rank, and only against a two-square advance from the opponent's second rank. A pawn that is merely standing beside you is not an en passant target.
Take now
Black just played d7-d5, passing d6. White's pawn is on e5, so exd6 is legal. The black pawn leaves d5, and the white pawn lands on d6.
Too late
The pawns still sit on d5 and e5, but the two-square advance was not the previous move. There is no en passant square. exd6 is illegal. Nf3 is an ordinary developing move.